package com.ywu.role.standard.data;

import com.ywu.role.standard.dto.UserRoleAuthDto;
import com.ywu.role.standard.entity.UserRoleAuthEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

@Mapper
public interface UserRoleAuthRepository {
    List<UserRoleAuthEntity> queryUserRoleInfo(@Param("model") UserRoleAuthDto userRoleAuthDto);

    void batchInsertUserRoleInfo(@Param("list") ArrayList<UserRoleAuthEntity> userRoleAuthEntities);

    void deleteBatchByUserId(@Param("list") List<Integer> userIds);

    void deleteByRoleId(@Param("id") Integer id);
}
